#!/bin/bash
export SOURCE_DIR=/home/hexiang/git/gmFoam/SRC
#*******************************************************************************************************#
# File:              ShellScript.tmpl                                              
# Author:            hexiang6666                                 | Boris Jeremic,                       #
# Date:              2017-03-09 23:49:45                         | University of California, Davis,95616#
# Description:       #############                               | California                           #
# Rev:               Version 1                                   | jeremic@ucdavis.edu                  #
# Email:             hexwang@ucdavis.edu                         | Computational Geomechanics Group     #
# * * * * * * * * * * * *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  # 
#                           Last Modified time: 2017-03-09 23:50:06                                     #              
#  * * * * * * * * * * * *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #         
# The copyright to the computer program(s) herein is the property of Hexiang Wang and Boris Jeremic     #
# The program(s) may be used and/or copied only with written permission of Hexiang Wang or in accordance# 
# with the terms and conditions stipulated in the agreement/contract under which the program have been  #
# supplied.                                                                                             #
#*******************************************************************************************************#
export CURRENT_DIR=$PWD
# if [ -d "./$1" ]
# then
# 	rm -r ./$1
# fi

# cd ./$1

cp -r $SOURCE_DIR/input_template/* $CURRENT_DIR/$1
source /home/hexiang/OpenFOAM/OpenFOAM-v1612+/etc/bashrc
gmshToFoam ./$1/*.msh -case $1
